package co.baiku.boot.im.tencent.request.data;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

public class AccountDeleteData implements TencentImRequestData {
    @JsonProperty("DeleteItem")
    private List<UserId> deleteItem = new ArrayList<>();

    public List<UserId> getDeleteItem() {
        return deleteItem;
    }

    public void setDeleteItem(List<UserId> deleteItem) {
        this.deleteItem = deleteItem;
    }

    public void add(String userId) {
        UserId u = new UserId();
        u.setUserId(userId);
        this.deleteItem.add(u);
    }

    public static class UserId {
        @JsonProperty("UserID")
        private String userId;

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }
    }
}
